package com.itheima.service.omsService.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.domain.db.oms.OmsOrderSetting;
import com.itheima.mapper.omsMapper.OrderSettingMapper;
import com.itheima.service.omsService.OrderSettingService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 订单设置
 *
 * @author DogeGuo
 */
@DubboService
public class OrderSettingServiceImpl extends ServiceImpl<OrderSettingMapper, OmsOrderSetting> implements OrderSettingService {
    @Autowired
    private OrderSettingMapper mapper;

    /**
     * 获取指定订单设置
     *
     * @param id
     * @return
     */
    @Override
    public OmsOrderSetting findById(Integer id) {
        return mapper.selectById(id);
    }

    /**
     * 修改指定订单设置
     * @param omsOrderSetting
     */
    @Override
    public void updateInfo( OmsOrderSetting omsOrderSetting) {
        mapper.updateById(omsOrderSetting);
    }
}
